Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]: Update translation of String.*WellFormed() #15173

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

JasonLamv-t
Copy link
Member

Description

Same as the title.

Motivation

Ditto.

Additional details

None.

Related issues and pull requests

#13975

@JasonLamv-t JasonLamv-t requested a review from a team as a code owner August 17, 2023 07:55
@JasonLamv-t JasonLamv-t requested review from irvin and removed request for a team August 17, 2023 07:55
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Aug 17, 2023

`toWellFormed()` 迭代字符串的码元,并将任何单独的代理项替换为 [Unicode 替换字符](<https://zh.wikipedia.org/wiki/特殊_(Unicode區段)>) U+FFFD `�`。这确保了返回的字符串格式正确并可用于期望正确格式字符串的函数,比如 {{jsxref("encodeURI")}}。由于引擎能够直接访问字符串的内部表示,与自定义实现相比 `toWellFormed()` 更高效。
`toWellFormed()` 迭代字符串的码元,并将任何单独代理项替换为 [Unicode 替换字符](<https://zh.wikipedia.org/wiki/特殊_(Unicode區段)>) U+FFFD `�`。这确保了返回的字符串格式正确并可用于期望正确格式字符串的函数,比如 {{jsxref("encodeURI")}}。由于引擎能够直接访问字符串的内部表示,与自定义实现相比 `toWellFormed()` 更高效。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The \U+FFFD Unicode character makes the gh command fail: cli/go-gh#127. I will review the PR locally. Do not worry about the failed CIs.

@yin1999 yin1999 self-assigned this Aug 17, 2023
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @JasonLamv-t

@yin1999 yin1999 changed the title [zh-cn]: Update translation of String.WellFormed() [zh-cn]: Update translation of String.*WellFormed() Aug 17, 2023
@yin1999 yin1999 merged commit 652f27d into mdn:main Aug 17, 2023
4 of 7 checks passed
@JasonLamv-t JasonLamv-t deleted the string-toWellFormed branch August 17, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants